package com.neuedu.His02.controller.Register;

import com.neuedu.His02.entity.Invoice;
import com.neuedu.His02.service.Register.BackNumberService;
import com.neuedu.His02.service.Register.RegisterService;
import com.neuedu.His02.util.EnumCode;
import com.neuedu.His02.util.ResultUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.math.BigDecimal;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

@RestController
@RequestMapping("/backnumber")
public class BackNumberController {
    @Resource
    private BackNumberService service;

    @Resource
    private RegisterService service1;
    @PostMapping("/selectAllInvoice")
//    http://localhost:8899/backnumber/selectAllInvoice
    public ResultUtil selectAllInvoice(Invoice invoice) {
        return null;
    }
    @PostMapping("/addInvoice")
    public int addInvoice(Invoice invoice) {
        return 0;
    }
    @PostMapping("/updateInvoice")
    public ResultUtil updateInvoice(@RequestBody Invoice invoice) {
        return null;
    }
    @PostMapping("/deleteInvoice")
    public int deleteInvoice(Invoice invoice) {
        return 0;
    }

    @PostMapping("/backNumber")
    public ResultUtil backNumber(@RequestBody Invoice invoice) throws ParseException {
        return null;
    }
}
